home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 25 code / Flicker Free / screen buffering.h < prev   
Encoding:
C/C++ Source or Header  |  1995-12-15  |  1.2 KB  |  45 lines  |  [TEXT/MPS ]

  1. /*---------------------------------------------------------------------------------
  2.  
  3.     FILE:
  4.         screen buffering.h
  5.     
  6.     DESCRIPTION:
  7.         this file contains a set of data structures and routines to maintain 
  8.         an offscreen buffer from within an application.
  9.     
  10.     COPYRIGHT:
  11.         ©1993 Hugo M. Ayala
  12.         ©1993 Apple Computer Inc.
  13.         
  14.     CHANGE LOG:
  15.     
  16.         02/20/93        Hugo        adpated to writing GraphicsLab
  17.  
  18. ---------------------------------------------------------------------------------*/
  19. #pragma once
  20.  
  21. #ifndef screenBufferingIncludes
  22. #define screenBufferingIncludes
  23.  
  24. #ifndef __TYPES__
  25.     #include "Types.h"
  26. #endif
  27. #ifndef __QUICKDRAW__
  28.     #include "Quickdraw.h"
  29. #endif
  30. #ifndef graphicsTypesIncludes
  31.     #include "graphics types.h"
  32. #endif
  33.  
  34. typedef struct viewPortBufferRecord **viewPortBuffer;
  35.  
  36. viewPortBuffer NewViewPortWBuffer( WindowPtr window, gxViewPort view, 
  37.     const gxColor *backcolorPtr );
  38. void DisposeViewPortWBuffer( viewPortBuffer sb );
  39.  
  40. void UpdateViewPortWBuffer( viewPortBuffer sb, gxShape clip, gxMapping *displaymap );
  41. void DrawShapeBuffered( viewPortBuffer sb, gxShape page, const gxRectangle *updatearea );
  42.  
  43. void SetViewPortWBufferDither( viewPortBuffer sb, const long ditherlevel );
  44.  
  45. #endif